import request from '@/utils/request'

export const EXPORT_URL = '/system/new/exportshareholder'

// 查询列表
export function listAccountantStation(query) {
  return request({
    url: '/system/new/shareholderlist',
    method: 'post',
    params: query
  })
}

// 查询详情
export function getAccountantStation(id) {
  return request({
    url: '/system/edit/getsubstaion?id=' + id,
    method: 'get'
  })
}

// 新增
export function addAccountantStation(data) {
  return request({
    url: '/system/new/saveshareholder',
    method: 'post',
    data: data
  })
}

// 修改
export function updateAccountantStation(data) {
  return request({
    url: '/system/new/editshareholder',
    method: 'post',
    data: data
  })
}

// 删除
export function delAccountantStation(ids) {
  return request({
    url: '/system/new/delshareholder/' + ids,
    method: 'DELETE',
  })
}
